<?php
// Set your return content type
//header('Content-Type: text/html');
// Website url to open

$name			= $_GET["name"];
$agent			= $_GET["agent"];
$phone			= $_GET["phone"];
$roomno			= $_GET["roomno"];
$vcno			= $_GET["vcno"];
$pax			= $_GET["pax"];
$dep_date		= $_GET["dep_date"];
$transfer		= $_GET["transfer"];
$tranfer_time	= $_GET["tranfer_time"];
$remark			= $_GET["remark"];
$date_receive	= $_GET["date_receive"];

//echo "dsadasd";
//echo $name.":".$agent.":".$phone.":".$roomno.":".$vcno.":".$pax.":".$dep_date.":".$transfer.":".$tranfer_time.":".$remark.":".$date_receive;

$url = "http://www.banraya.com/booking/daytour.php?data=";

$daurl = Array();
$daurl[] = $name;
$daurl[] = $agent;
$daurl[] = $phone;
$daurl[] = $roomno;
$daurl[] = $vcno;
$daurl[] = $pax;
$daurl[] = $dep_date;
$daurl[] = $transfer;
$daurl[] = $tranfer_time;
$daurl[] = $remark;
$daurl[] = $date_receive;

$y = serialize($daurl);

//$url .= ;

//echo $y."\n"; 
//$z = unserialize($y);
//echo $z[0];

// Get that website's content
$z = urlencode($y);
$url .= $z;
//echo urldecode($z);



$handle = fopen($url, "r");

// If there is something, read and return
if ($handle) {    
	while (!feof($handle)) {        
		$buffer = fgets($handle, 4096);
		echo $buffer;
	}    
	fclose($handle);
}

?>